package pro.uccs;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.env.Environment;

/**
 * @author songc
 */
@SpringBootApplication
public class Oauth2ClientApplication {

    public static void main(String[] args) {
        SpringApplication.run(Oauth2ClientApplication.class, args);
    }

    /**
     * .
     * @param env .
     */
    @Autowired
    void setEnvironment(Environment env) {
        System.out.println("my-config.appName from env: " + env.getProperty("my-config.appName"));
    }
}
